package com.lyy.king.auth.service.impl;

import com.lyy.king.auth.domain.User;
import com.lyy.king.auth.mapper.UserMapper;
import com.lyy.king.auth.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User selectByUsername(String username) {
        User user = userMapper.findUserByUsername(username);
        return user;
    }

    @Override
    public User selectById(Integer id) {

        return userMapper.findById(id);
    }
}
